FolderStatusModel: only create a single QFileIconProvider object
authorJyrki Gadinger <nilsding@nilsding.org>
Thu, 20 Feb 2025 13:03:11 +0000 (14:03 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 20 Feb 2025 16:24:06 +0000 (16:24 +0000)
commit85e460c77517e8d0c31c2a8bfe7e1717d11482f1
tree92f8e9ec0e313e48ea6251eaed6026ef283e1c99
parent556d26c6f19b37c4940572c57d078044eb5b2eb1
FolderStatusModel: only create a single QFileIconProvider object

otherwise the icons will end up being loaded from the system each time,
which on Windows takes quite long (I saw many calls to
`shell32.dll!SHDefExtractIcon` during profiling)

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/gui/folderstatusmodel.cpp
src/gui/folderstatusmodel.h